package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BreedFishDetailMapper;
import com.ruoyi.system.domain.BreedFishDetail;
import com.ruoyi.system.service.IBreedFishDetailService;

/**
 * BreedFishDetailServiceImpl
 */
@Service
public class BreedFishDetailServiceImpl implements IBreedFishDetailService 
{
    @Autowired
    private BreedFishDetailMapper breedFishDetailMapper;

    /**
     * 查询繁育详情
     * 
     * @param id 繁育详情主键
     * @return 繁育详情
     */
    @Override
    public BreedFishDetail selectBreedFishDetailById(Long id)
    {
        return breedFishDetailMapper.selectBreedFishDetailById(id);
    }

    /**
     * 查询繁育详情列表
     * 
     * @param breedFishDetail 繁育详情
     * @return 繁育详情
     */
    @Override
    public List<BreedFishDetail> selectBreedFishDetailList(BreedFishDetail breedFishDetail)
    {
        return breedFishDetailMapper.selectBreedFishDetailList(breedFishDetail);
    }

    /**
     * 新增繁育详情
     * 
     * @param breedFishDetail 繁育详情
     * @return 结果
     */
    @Override
    public int insertBreedFishDetail(BreedFishDetail breedFishDetail)
    {
        return breedFishDetailMapper.insertBreedFishDetail(breedFishDetail);
    }

    /**
     * 修改繁育详情
     * 
     * @param breedFishDetail 繁育详情
     * @return 结果
     */
    @Override
    public int updateBreedFishDetail(BreedFishDetail breedFishDetail)
    {
        return breedFishDetailMapper.updateBreedFishDetail(breedFishDetail);
    }

    /**
     * 批量删除繁育详情
     * 
     * @param ids 需要删除的繁育详情主键
     * @return 结果
     */
    @Override
    public int deleteBreedFishDetailByIds(Long[] ids)
    {
        return breedFishDetailMapper.deleteBreedFishDetailByIds(ids);
    }

    /**
     * 删除繁育详情信息
     * 
     * @param id 繁育详情主键
     * @return 结果
     */
    @Override
    public int deleteBreedFishDetailById(Long id)
    {
        return breedFishDetailMapper.deleteBreedFishDetailById(id);
    }
}
